xen.git
19 years ago[TOOLS] Fix gdbserver build.
kaf24@firebug.cl.cam.ac.uk [Wed, 30 Aug 2006 16:52:35 +0000 (17:52 +0100)]
[TOOLS] Fix gdbserver build.
Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years agoFix fix :-)
Steven Hand [Wed, 30 Aug 2006 12:51:12 +0000 (13:51 +0100)]
Fix fix :-)

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoFix hard tabs.
Steven Hand [Wed, 30 Aug 2006 12:50:08 +0000 (13:50 +0100)]
Fix hard tabs.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoBlock IO safety patch for live migration. Xend checks that VBDs are destroyed before...
jchesterfield@dhcp92.uk.xensource.com [Wed, 30 Aug 2006 10:39:27 +0000 (11:39 +0100)]
Block IO safety patch for live migration. Xend checks that VBDs are destroyed before unpausing the domain.

19 years agoFurther shadow_mem_control fixes -- we need to balloon the amount of memory
Ewan Mellor [Wed, 30 Aug 2006 10:05:00 +0000 (11:05 +0100)]
Further shadow_mem_control fixes -- we need to balloon the amount of memory
that we're going to request i.e. the rounded-up value.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoShadow memory should be in MiB, not KiB. It also needs rounding up to be safe.
Ewan Mellor [Wed, 30 Aug 2006 08:47:24 +0000 (09:47 +0100)]
Shadow memory should be in MiB, not KiB.  It also needs rounding up to be safe.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix reboot and reconfigure of HVM guests when they are configured with an
Ewan Mellor [Wed, 30 Aug 2006 01:53:48 +0000 (02:53 +0100)]
Fix reboot and reconfigure of HVM guests when they are configured with an
empty CD-ROM drive.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded an entry to arch._types for x86_64.
Ewan Mellor [Wed, 30 Aug 2006 00:20:01 +0000 (01:20 +0100)]
Added an entry to arch._types for x86_64.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix typo.
Andrew Warfield [Tue, 29 Aug 2006 23:31:57 +0000 (16:31 -0700)]
Fix typo.

Signed-off-by: <andy@xensource.com>
19 years agomerge
Andrew Warfield [Tue, 29 Aug 2006 22:58:57 +0000 (15:58 -0700)]
merge

19 years agoSmall blktap cleanups.
akw@devbox.site [Tue, 29 Aug 2006 22:55:24 +0000 (15:55 -0700)]
Small blktap cleanups.

Signed-off-by: Andrew Warfield <andy@xensource.com>
19 years ago[XEND] abstract architecture-specific bits in image.py
Ewan Mellor [Tue, 29 Aug 2006 22:20:22 +0000 (23:20 +0100)]
[XEND] abstract architecture-specific bits in image.py
- create arch.type (which evaluates to "x86", "ia64" or "powerpc")
- create subclasses for x86 and ia64 HVM loaders
- rework findImageHandlerClass()
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
19 years agoThis patch fixed 'xm reboot' to work as you expected with the wait
Ewan Mellor [Tue, 29 Aug 2006 21:51:06 +0000 (22:51 +0100)]
This patch fixed 'xm reboot' to work as you expected with the wait
option. This patch adds a restart sequence counter to xenstore.
The completion of a VM reboot is detected by observing that
its restart sequence counter changes.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoImprove xm migrate error message by printing usage instead of "Invalid
Ewan Mellor [Tue, 29 Aug 2006 21:51:05 +0000 (22:51 +0100)]
Improve xm migrate error message by printing usage instead of "Invalid
arguments".

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoReduce AIO context allocations in blktap.
akw@devbox.site [Tue, 29 Aug 2006 21:34:57 +0000 (14:34 -0700)]
Reduce AIO context allocations in blktap.

Signed-off-by: Andrew Warfield <andy@xensource.com>
19 years agoFix definition of LINUX_VER so that doesn't pickup LINUX_VER3
Ian Campbell [Tue, 29 Aug 2006 11:23:11 +0000 (12:23 +0100)]
Fix definition of LINUX_VER so that doesn't pickup LINUX_VER3
from mk.linux-2.6-xen. This makes "make mkpatches" work again.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoMerge
tdeegan@york.uk.xensource.com [Tue, 29 Aug 2006 08:42:35 +0000 (09:42 +0100)]
Merge

19 years ago[XEN] Off-by one error in range checks translating gfns to mfns
tdeegan@york.uk.xensource.com [Tue, 29 Aug 2006 08:37:30 +0000 (09:37 +0100)]
[XEN] Off-by one error in range checks translating gfns to mfns
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11273:a1cff03ac7d7.
Christian Limpach [Mon, 28 Aug 2006 21:44:31 +0000 (22:44 +0100)]
[qemu patches] Update patches for changeset 11273:a1cff03ac7d7.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Fix PCI config header space writes and set Subsystem-Vendor ID fields.
Christian Limpach [Mon, 28 Aug 2006 21:43:09 +0000 (22:43 +0100)]
[qemu] Fix PCI config header space writes and set Subsystem-Vendor ID fields.
Fix failure in Windows HCT's PCI-Compliance-Test by invalidating the
writing to read-only/reserved fields in PCI configuration space header
and giving Subsystem-Vendor-ID field a valid value via copying Vendor-ID
field into it.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years agoFix hypervisor build with performance counters after -unstable
Steven Hand [Mon, 28 Aug 2006 20:57:34 +0000 (21:57 +0100)]
Fix hypervisor build with performance counters after -unstable
cset 11257:86d26e6ec89b

Signed-off-by: Steve Dobbelstein <steved@us.ibm.com>
19 years agoFix shadow mode 32/PAE linux writable heuristic and add 64-bit version.
Steven Hand [Mon, 28 Aug 2006 20:40:42 +0000 (21:40 +0100)]
Fix shadow mode 32/PAE linux writable heuristic and add 64-bit version.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoFix PAE-mode HVM guests with the new shadow code.
Steven Hand [Mon, 28 Aug 2006 20:25:13 +0000 (21:25 +0100)]
Fix PAE-mode HVM guests with the new shadow code.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11268:350a73222a51.
Christian Limpach [Mon, 28 Aug 2006 19:22:56 +0000 (20:22 +0100)]
[qemu patches] Update patches for changeset 11268:350a73222a51.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Add target-i386-dm and hw *.[ch] files to TAGS.
Christian Limpach [Mon, 28 Aug 2006 19:21:38 +0000 (20:21 +0100)]
[qemu] Add target-i386-dm and hw *.[ch] files to TAGS.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[HVM] Don't assume that VMENTER causes a TLB flush, when validating
tdeegan@york.uk.xensource.com [Mon, 28 Aug 2006 16:50:21 +0000 (17:50 +0100)]
[HVM] Don't assume that VMENTER causes a TLB flush, when validating
shadow pagetable updates.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoFix Intel copyright notice in a single source file.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 12:08:41 +0000 (13:08 +0100)]
Fix Intel copyright notice in a single source file.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Move all of the various log files created by xen to
kaf24@localhost.localdomain [Mon, 28 Aug 2006 12:05:00 +0000 (13:05 +0100)]
[XEND] Move all of the various log files created by xen to
be under /var/log/xen instead of under /var/log directly.  This has
the advantage of cleaning things up a little and also can make it
easier to restrict the permissions needed by xend.

Signed-off-by: Jeremy Katz <katzj@redhat.com>
19 years ago[HVM] [SMBIOS] Duplicate UUID into serial number in SMBIOS tables.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:59:07 +0000 (12:59 +0100)]
[HVM] [SMBIOS] Duplicate UUID into serial number in SMBIOS tables.

Windows zeroes out the UUID in the SMBIOS tables, but the identifier
is often needed by systems management code.  Duplicating the UUID
as the virtual system's serial number should help.

Signed-off-by: Andrew D. Ball <aball@us.ibm.com>
19 years agoThe following patch fixes a bug where xenconsoled will can SEGV
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:50:55 +0000 (12:50 +0100)]
The following patch fixes a bug where xenconsoled will can SEGV
because it uses FD_ISSET(-1,xxx).  Since the code is written that any
ring/tty handler can set d->tty_fd to -1 it has to be checked
_every_time_.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
19 years ago[TOOLS] Remove Gentoo-specific workaround in networking
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:49:14 +0000 (12:49 +0100)]
[TOOLS] Remove Gentoo-specific workaround in networking
scripts -- apparently it is not needed (reported by
Tuan Van <lang.thang@gmail.com>). See bugzilla issue #741
for more details.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Clean up routed vifs quietly on domain destruction.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:41:15 +0000 (12:41 +0100)]
[TOOLS] Clean up routed vifs quietly on domain destruction.

I have experienced that the vif-route script does not work as expected
when deleting a virtual interface (Redhat FC5). Both of the commands
"ifdown" and "ip route" cause an early vif-route script exit and
therefore will cause skipping of the later script commands (such as
cleaning up iptables entries for the default 'antispoof'). The
vif-route
script creates the following syslog error entry:
"/etc/xen/scripts/vif-route failed; error detected."

It appears that both of the problematic commands are actually
redundant
when destroying domains:
1. the interface is already gone (I assume because the domain frontend
is gone already)  --> ifdown does not do anything
2. the route is gone as well since the interface has disappeared -->
ip
route del does not do anything

Executing those redundant commands with "do_without_error" ensures
that
the script completes and cleans up iptables rules. The attached
RFC-patch only masks those commands when bringing down an interface,
so
that domain creation continues to fail in case of vif setup problems
(intended behavior).

Having the iptables cleanup called correctly by vif-route is important
to keep the iptables rule-set clean, otherwise antispoof rules
accumulate with every vif creation.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years ago[HVM][SVM] Allow SVM to take advantage of flag_dr_dirty.
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:35:43 +0000 (12:35 +0100)]
[HVM][SVM] Allow SVM to take advantage of flag_dr_dirty.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[XEN] Rename shadow2 to shadow and move the various source
kaf24@localhost.localdomain [Mon, 28 Aug 2006 11:09:36 +0000 (12:09 +0100)]
[XEN] Rename shadow2 to shadow and move the various source
files into a sensible directory hierarchy.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PATCH] fix null pointer dereference in xen_guest_lookup()
Alex Williamson [Sun, 27 Aug 2006 05:56:01 +0000 (06:56 +0100)]
[PATCH] fix null pointer dereference in xen_guest_lookup()

  The latest ELF changes have a null pointer dereference bug when you
have neither an elf notes section nor a __xen_guest_string.  This patch
checks for the existence of the __xen_guest_string prior to using it.
Please apply.  Thanks,

Alex

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---

19 years ago[XEN] Fix silly transposition typo in previous changeset.
kaf24@firebug.cl.cam.ac.uk [Fri, 25 Aug 2006 21:35:24 +0000 (22:35 +0100)]
[XEN] Fix silly transposition typo in previous changeset.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoReplace dom0_ops hypercall with three new hypercalls:
kfraser@localhost.localdomain [Fri, 25 Aug 2006 17:39:10 +0000 (18:39 +0100)]
Replace dom0_ops hypercall with three new hypercalls:
 1. platform_op -- used by dom0 kernel to perform actions on the
    hardware platform (e.g., MTRR access, microcode update, platform
    quirks, ...)
 2. domctl -- used by management tools to control a specified domain
 3. sysctl -- used by management tools for system-wide actions

Benefits include more sensible factoring of actions to
hypercalls. Also allows tool compatibility to be tracked separately
from the dom0 kernel. The assumption is that it will be easier to
replace libxenctrl, libxenguest and Xen as a matched set if the
dom0 kernel does not need to be replaced too (e.g., because that
would require vendor revalidation).

From here on we hope to maintain dom0 kernel compatibility. This
promise is not extended to tool compatibility beyond the existing
guarantee that compatibility will not be broken within a three-level
stable release [3.0.2, 3.0.3, etc.].

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Use ELFSIZE to pick the ELF structures to use in readnotes.c
Ian Campbell [Fri, 25 Aug 2006 09:39:24 +0000 (10:39 +0100)]
[TOOLS] Use ELFSIZE to pick the ELF structures to use in readnotes.c

We can remove Elf_Ehdr since it is only used for e_ident which is an
unsigned char array.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agomerge
Ian Campbell [Fri, 25 Aug 2006 09:06:24 +0000 (10:06 +0100)]
merge

19 years ago[LINUX] Remove hypercall permission checks from privcmd driver.
kfraser@localhost.localdomain [Thu, 24 Aug 2006 16:58:28 +0000 (17:58 +0100)]
[LINUX] Remove hypercall permission checks from privcmd driver.

This will allow the tools management to be revised independently
of dom0 kernel interfaces. Currently tools cannot be 'smarter'
than the kernel in terms of hypercalls they know about, because
the kernel disallows access to any hypercalls it does not know
about.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fixes to the ACPI table definition.
kfraser@localhost.localdomain [Thu, 24 Aug 2006 16:24:54 +0000 (17:24 +0100)]
[HVM] Fixes to the ACPI table definition.

1) Fixed HCT test "Unreported Memory and I/O Port test" for memory
   range 0xC0000~0xFFFFF and IO 0x378
2) Make consistent with non-acpi OS by enabling LPT1, remove com2
   which conflicts with usb mouse
3) Fixed the USB HID-Compliant mouse when set
   usbdevice='tablet'/'mouse'
4) Fixed Vista boot by removing old NIC "resourceConsumer"

Signed-off-by: Winston Wang <winston.l.wang@intel.com>
19 years agoRemove redundant performance counters.
Steven Hand [Thu, 24 Aug 2006 15:25:49 +0000 (16:25 +0100)]
Remove redundant performance counters.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoEnsure get_dom_domid() terminates even when /local/domain/<foo>/name is
Steven Hand [Thu, 24 Aug 2006 13:07:01 +0000 (14:07 +0100)]
Ensure get_dom_domid() terminates even when /local/domain/<foo>/name is
not present.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[POWERPC] Remove references to xen_guest_string from ppc dom0 builder.
Ian Campbell [Thu, 24 Aug 2006 09:58:41 +0000 (10:58 +0100)]
[POWERPC] Remove references to xen_guest_string from ppc dom0 builder.
The xen_guest_string should not be examined directly and the ppc code
doesn't use it yet anyway.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix shadow2 issues with HVM guests.
kfraser@localhost.localdomain [Thu, 24 Aug 2006 08:49:41 +0000 (09:49 +0100)]
[XEN] Fix shadow2 issues with HVM guests.

This supercedes 11243:51a98a6c2c054bfc37c90a5a3f29929f2347bda8
which was incorrect because the data operand type codes in
the opcode table are not correct for some special cases: one
of these happens to be PUSH, which is the instruction we
particularly need to fix!

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoThis small patch adds back a closing paranthesis that has gone lost. It
Ewan Mellor [Wed, 23 Aug 2006 22:12:56 +0000 (23:12 +0100)]
This small patch adds back a closing paranthesis that has gone lost. It
fixes the build for the Xen access control module.

Signed-off by: Reiner Sailer <sailer@us.ibm.com>

19 years agoThe various tools expect the device node to be /dev/xen/evtchn -- this
Ewan Mellor [Wed, 23 Aug 2006 21:16:02 +0000 (22:16 +0100)]
The various tools expect the device node to be /dev/xen/evtchn -- this
makes it so that udev actually creates the device there

Signed-off-by: Jeremy Katz <katzj@redhat.com>
19 years agomerge
Ian Campbell [Wed, 23 Aug 2006 17:39:17 +0000 (18:39 +0100)]
merge

19 years ago[XEN] Restore backwards compatibility by supporting __xen_guest
Ian Campbell [Wed, 23 Aug 2006 17:38:49 +0000 (18:38 +0100)]
[XEN] Restore backwards compatibility by supporting __xen_guest
section in dom0 loader.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix the x86 emulator to safely fail when it turns out the
kfraser@localhost.localdomain [Wed, 23 Aug 2006 17:38:08 +0000 (18:38 +0100)]
[XEN] Fix the x86 emulator to safely fail when it turns out the
faulting memory access was to/from an implicit memory operand
(typically either an instruction fetch or stack access).
Rationalise use of macros for page fault error code flags.
This patch supercedes the fix in changeset 11242.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Cleanups to domU ELF loader.
Ian Campbell [Wed, 23 Aug 2006 17:35:21 +0000 (18:35 +0100)]
[TOOLS] Cleanups to domU ELF loader.

- Remove debugging statements.
- Cope better with archtectures where neither ELF notes or __xen_guest
  are needed or required.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoDon't emulate faulting writes to stack. May fix a number of recent hvm
Steven Hand [Wed, 23 Aug 2006 16:25:11 +0000 (17:25 +0100)]
Don't emulate faulting writes to stack. May fix a number of recent hvm
bugs with the new shadow code. A more complete clean-up of the emulation
code will follow.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years agoRemove all traces of the obsolete BVT scheduler.
kfraser@localhost.localdomain [Wed, 23 Aug 2006 16:14:38 +0000 (17:14 +0100)]
Remove all traces of the obsolete BVT scheduler.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
kfraser@localhost.localdomain [Wed, 23 Aug 2006 14:02:55 +0000 (15:02 +0100)]
[TOOLS] Remove the 'cpuperf' misc tool. Xenoprof is the
correct tool to use for hardware perfctr monitoring now.
Also remove unused xc_msr MSR accessor functions from libxenctrl.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TOOLS] Add a simple tool to display the Xen specific ELF notes.
Ian Campbell [Wed, 23 Aug 2006 13:43:48 +0000 (14:43 +0100)]
[TOOLS] Add a simple tool to display the Xen specific ELF notes.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.
Ian Campbell [Wed, 23 Aug 2006 13:41:05 +0000 (14:41 +0100)]
[XEN/LINUX] Define Xen ELF notes in kernel header and update dom0 builder.

ELF notes provide a cleaner interface for passing Xen specific
information from the kernel to the domain builder than the existing
__xen_guest section string. The __xen_guest string is retained in
kernels built with 3.0.2 compatability for domU however dom0 requires
the new interface.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[TOOLS] Allow tools to load kernels which use an ELF notes segment.
Ian Campbell [Wed, 23 Aug 2006 13:37:39 +0000 (14:37 +0100)]
[TOOLS] Allow tools to load kernels which use an ELF notes segment.

Compatability with kernels using the __xen_guest section is retained.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Define the types to be used with Xen in the ELF notes section.
Ian Campbell [Wed, 23 Aug 2006 13:36:09 +0000 (14:36 +0100)]
[XEN] Define the types to be used with Xen in the ELF notes section.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Define ELFNOTE as a preprocessor macro rather than an assembler macro
Ian Campbell [Wed, 23 Aug 2006 13:34:25 +0000 (14:34 +0100)]
[LINUX] Define ELFNOTE as a preprocessor macro rather than an assembler macro

Assembler .macros have various issues with string arguments and :varargs.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix pirq_guest_unbind(). Remove unnecessary code
kfraser@localhost.localdomain [Wed, 23 Aug 2006 10:27:06 +0000 (11:27 +0100)]
[XEN] Fix pirq_guest_unbind(). Remove unnecessary code
(in fact flush_all_pending_eoi() was broken!).
Based on a patch from Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Tue, 22 Aug 2006 17:51:02 +0000 (18:51 +0100)]
merge

19 years ago[XEN] Remove some accidentally commited debug code
Ian Campbell [Tue, 22 Aug 2006 17:50:22 +0000 (18:50 +0100)]
[XEN] Remove some accidentally commited debug code
from dom0 domain builder.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[SHADOW] Clean up the DOM0_SHADOW_OP interface.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 17:50:01 +0000 (18:50 +0100)]
[SHADOW] Clean up the DOM0_SHADOW_OP interface.
Also bump the dom0 interface version for tools (but
not for dom0 kernel!).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Tue, 22 Aug 2006 17:48:00 +0000 (18:48 +0100)]
merge

19 years ago[XEN] Revert changes to dom0 domain builder made by cset 11226.
Ian Campbell [Tue, 22 Aug 2006 17:47:29 +0000 (18:47 +0100)]
[XEN] Revert changes to dom0 domain builder made by cset 11226.

We require that the dom0 domain builder still sets _PAGE_USER.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pci
kfraser@localhost.localdomain [Tue, 22 Aug 2006 16:16:58 +0000 (17:16 +0100)]
[HVM] Clean ups for PV-on-HVM drivers. In particular, platform-pci
driver can now handle multi-page hypercall stub areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Update x86/64 ELF note patch to version accepted upstream.
Ian Campbell [Tue, 22 Aug 2006 14:55:43 +0000 (15:55 +0100)]
[LINUX] Update x86/64 ELF note patch to version accepted upstream.

Signed-off-by: Ian Campbell <ian.campbell@xesource.com>
19 years ago[x86_64] Guests no longer set _PAGE_USER on kernel mappings.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 14:26:40 +0000 (15:26 +0100)]
[x86_64] Guests no longer set _PAGE_USER on kernel mappings.
This may allow guest kernels to be run outside ring 3 in future, and
also provides scope for optimisations today (e.g., using global bit on
user mappings).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[hvm] Export gpfn of store page to guest - not mfn.
Christian Limpach [Tue, 22 Aug 2006 14:13:07 +0000 (15:13 +0100)]
[hvm] Export gpfn of store page to guest - not mfn.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoMake add_to_bridge() always leave the device up even when it bails out due to the...
Anil Madhavapeddy [Tue, 22 Aug 2006 13:59:16 +0000 (14:59 +0100)]
Make add_to_bridge() always leave the device up even when it bails out due to the device already being present on the bridge.
This makes the script more idempotent if run twice (e.g. from hotplug and udev), since the second time the device will be taken down and not brought up again, leaving the host without networking.

Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
19 years ago[LINUX] Support creating ELF note segments in the kernel ELF image.
Ian Campbell [Tue, 22 Aug 2006 11:20:43 +0000 (12:20 +0100)]
[LINUX] Support creating ELF note segments in the kernel ELF image.

i386 version is taken from 2.6.18-rc4-mm1 and x86_64 version has been
submitted for inclusion.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agomerge.
Ian Campbell [Tue, 22 Aug 2006 10:34:46 +0000 (11:34 +0100)]
merge.

19 years ago[XEN] Debug builds check for correct usage of percpu areas.
kfraser@localhost.localdomain [Tue, 22 Aug 2006 10:33:59 +0000 (11:33 +0100)]
[XEN] Debug builds check for correct usage of percpu areas.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.
Ian Campbell [Tue, 22 Aug 2006 10:30:13 +0000 (11:30 +0100)]
[LINUX] Revert bits of cset 11202 since they break the -xenU build for x86/64.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
kfraser@localhost.localdomain [Tue, 22 Aug 2006 10:19:48 +0000 (11:19 +0100)]
[XEN] Clean up some x86 bootstrap code. Replace some CPU iterators
with for_each_cpu() -- we want to ensure that per_cpu areas are
accessed only for cpus in cpu_possible_map.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdded option to xentrace to set the trace buffer size.
George Dunlap [Mon, 21 Aug 2006 16:05:11 +0000 (12:05 -0400)]
Added option to xentrace to set the trace buffer size.

Signed-off-by: George Dunlap <gdunlap@xensource.com>
19 years ago[XEN] Remove bogus assertion.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 12:36:05 +0000 (13:36 +0100)]
[XEN] Remove bogus assertion.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix assertion.
Steven Hand [Mon, 21 Aug 2006 12:21:51 +0000 (13:21 +0100)]
Fix assertion.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[XEN] Revert patch 11213.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 10:51:54 +0000 (11:51 +0100)]
[XEN] Revert patch 11213.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix maddr_from_mapped_domain_page().
kfraser@localhost.localdomain [Mon, 21 Aug 2006 10:39:27 +0000 (11:39 +0100)]
[XEN] Fix maddr_from_mapped_domain_page().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fix shadow2 integration with writable-pagetable logic.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 09:28:02 +0000 (10:28 +0100)]
[XEN] Fix shadow2 integration with writable-pagetable logic.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Remove unnecessary printk from invalid opcode debug output.
kfraser@localhost.localdomain [Mon, 21 Aug 2006 08:01:53 +0000 (09:01 +0100)]
[XEN] Remove unnecessary printk from invalid opcode debug output.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[xend] Add 'xend_config_format' field to the Xend information block.
Christian Limpach [Sun, 20 Aug 2006 23:11:17 +0000 (00:11 +0100)]
[xend] Add 'xend_config_format' field to the Xend information block.
When running 'xm info' it appears thus:

 # xm info
 host                   : 10.13.4.252
 release                : 2.6.17-1.2157_FC5xen0
 version                : #1 SMP Tue Jul 11 23:30:05 EDT 2006
 machine                : x86_64
 ...snipped rest of data...
 cc_compile_domain      : build.redhat.com
 cc_compile_date        : Tue Jul 11 22:50:42 EDT 2006
 xend_config_format     : 2

It will also appear in the SEXPR returned when doing a GET on the
/xend/node path in XenD's HTTP service:

 (node
   (system Linux)
   (host 10.13.4.252)
   (release 2.6.17-1.2157_FC5xen0)
   (version '#1 SMP Tue Jul 11 23:30:05 EDT 2006')
   (machine x86_64)
   ...snipped rest of data...
   (cc_compile_domain build.redhat.com)
   (cc_compile_date 'Tue Jul 11 22:50:42 EDT 2006')
   (xend_config_format 2)
 )

The patch sets the format to value '2' to indicate that we're on the version
with the new style HVM configuration for CDROM devices. The old style having
implicitly been version '1'.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years ago[qemu patches] Update patches for changeset 11209:9bb6c1c1890a.
Christian Limpach [Sun, 20 Aug 2006 23:01:11 +0000 (00:01 +0100)]
[qemu patches] Update patches for changeset 11209:9bb6c1c1890a.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] hdparm tunable IDE write cache for HVM
Christian Limpach [Sun, 20 Aug 2006 22:59:34 +0000 (23:59 +0100)]
[qemu] hdparm tunable IDE write cache for HVM
qemu 0.8.2 has a flush callback to the storage backends, so now it is
possible to implement hdparm tunable IDE write cache enable/disable for
guest domains, allowing people to pick speed or data consistency on a
case by case basis.

As an added benefit, really large LBA48 IOs will now no longer be broken
up into smaller IOs on the host side.

From: Rik van Riel <riel@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11206:fc3e7e65b953.
Christian Limpach [Sun, 20 Aug 2006 22:52:39 +0000 (23:52 +0100)]
[qemu patches] Update patches for changeset 11206:fc3e7e65b953.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu patches] Update patches for changeset 11206:fc3e7e65b953.
Christian Limpach [Sun, 20 Aug 2006 22:34:17 +0000 (23:34 +0100)]
[qemu patches] Update patches for changeset 11206:fc3e7e65b953.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[qemu] Allow booting from more than one device.
Christian Limpach [Sun, 20 Aug 2006 22:33:28 +0000 (23:33 +0100)]
[qemu] Allow booting from more than one device.
The rombios supports trying to boot from more than one device and then
falling back.  Set 'boot=dc' in your config file to try booting first
from the CD and then the hard drive.

Based on a patch from: Jeremy Katz <katzj@redhat.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEN] More shadow2 cleanups -- primarily moving arch vcpu/domain
kaf24@localhost.localdomain [Sun, 20 Aug 2006 16:55:33 +0000 (17:55 +0100)]
[XEN] More shadow2 cleanups -- primarily moving arch vcpu/domain
fields into separate shadow2-specific structures.
Also rename shadow2_entry_points to shadow2_paging_mode.
Remove VCPUF_shadow2_translate_mode and replace with a better-named
field in vcpu.arch.shadow2
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Clarify x86 hypercall ABI in public header comments.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 16:07:54 +0000 (17:07 +0100)]
[XEN] Clarify x86 hypercall ABI in public header comments.
In particular: x86/64 *does* clobber its ragument registers
(just like i386). This happens in debug builds, and if a
continuation is created.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XENBUS] Allow user of xenbus_read_driver_state() to distinguish
kaf24@localhost.localdomain [Sat, 19 Aug 2006 13:28:10 +0000 (14:28 +0100)]
[XENBUS] Allow user of xenbus_read_driver_state() to distinguish
absence of state field in xenstore by returning XenbusStateUnknown
rather than XenbusStateClosed.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Replace uses of CONFIG_XEN_PRIVILEGED_GUEST with is_initial_xendomain().
kaf24@localhost.localdomain [Sat, 19 Aug 2006 11:08:12 +0000 (12:08 +0100)]
[LINUX] Replace uses of CONFIG_XEN_PRIVILEGED_GUEST with is_initial_xendomain().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[HVM][VMX] Don't update the EIP on debug register accesses
kaf24@localhost.localdomain [Sat, 19 Aug 2006 11:07:07 +0000 (12:07 +0100)]
[HVM][VMX] Don't update the EIP on debug register accesses

On debug register accesses, the EIP should not be updated.
Because of the way that lazy save/restore of the debug
registers is implemented, this initial debug register access
is lost.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years ago[HVM] Fix SMBIOS entry point copy destination.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 11:06:36 +0000 (12:06 +0100)]
[HVM] Fix SMBIOS entry point copy destination.
Spotted by Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Fix receive path for auto-translated guests, so that
kaf24@localhost.localdomain [Sat, 19 Aug 2006 10:39:04 +0000 (11:39 +0100)]
[NET] front: Fix receive path for auto-translated guests, so that
driver balloon allowance is properly accounted.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Make some implicit header includes explicit.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 10:13:17 +0000 (11:13 +0100)]
[XEN] Make some implicit header includes explicit.
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
19 years ago[NET] front: Fix tx buffer leak in teardown path. Fix rx-buffer
kaf24@localhost.localdomain [Sat, 19 Aug 2006 10:08:40 +0000 (11:08 +0100)]
[NET] front: Fix tx buffer leak in teardown path. Fix rx-buffer
cleanup: cannot free skbuffs until their memory is remapped by
multicall.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] front: Fix rx buffer leak when tearing down an interface.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:58:07 +0000 (10:58 +0100)]
[NET] front: Fix rx buffer leak when tearing down an interface.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[XENBUS] Cleanup correctly on suspend, unregister watches.
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:21:02 +0000 (10:21 +0100)]
[XENBUS] Cleanup correctly on suspend, unregister watches.
Again needed for domU kexec, so the next kernel instance can register
watches without running into -EBUSY.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[NET/BLK] back: Change the netback and blkback device drivers to allow
kaf24@localhost.localdomain [Sat, 19 Aug 2006 09:20:08 +0000 (10:20 +0100)]
[NET/BLK] back: Change the netback and blkback device drivers to allow
and handle frontend state transition from "Closing" to "Initialising".
Instead of destroying the backend device then they wait for a
reconnect from the frontend.  Needed for domU kexec support, to hand over
devices from one kernel instance to the next.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>